package com.msb.servicemap.controller;

import com.msb.commons.response.ResponseResult;
import com.msb.servicemap.service.FalconServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: chshh
 * @version: 1.0
 */
@RestController
@RequestMapping("/falconService")
public class FalconServiceController {

    @Autowired
    private FalconServiceService falconServiceService;
    /**
     * 创建猎鹰Service
     * @param name
     * @return
     */
    @PostMapping("/add")
    public ResponseResult add(String name){
        return falconServiceService.add(name);
    }
}
